#include <QUdpSocket>
#include "threadpeer.h"
#include "udpComunInPTh.h"

ThreadPeer::ThreadPeer(quint8 threadID, QObject *parent) :
    QThread(parent)
{
    ID=threadID;
    udpComInPeerThread=NULL;
}

void ThreadPeer::run()
{
    udpComInPeerThread=new UdpCommunInPeerThread(ID);

    exec();
}


ThreadPeer::~ThreadPeer()
{
    delete udpComInPeerThread;
}
